

export const apiAxios = (that,data = {},url, Method = 'get') => {
    return new Promise((resolve, reject) => {
        let DataApi = Method == 'post' ? data : {
            params: data
        }
        that.$axios[Method](process.env.baseUrl + url, DataApi).then(res => {
            resolve(res.data)
        }).catch(res => {
            reject(res)
        })

        // }
    })
}